To calculate what the magnetic field near a conductor is like, you can use Ampère's Law. The visual will help you to understand it.
Except where otherwise noted, this work is licensed under a Creative Common License